package com.qimo.dao;

import com.qimo.model.ShoppingCartList;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ShoppingCartDao {
    int addShoppingCart(@Param("userId")int userId, @Param("itemId")int itemId);
    int alterShoppingCartNumber(@Param("userId")int userId, @Param("itemId")int itemId,@Param("Number")int Number);
    int delShoppingCart(@Param("userId")int userId, @Param("itemId")int itemId);
    int selectShoppingCartNumber(@Param("userId")int userId);
    List<ShoppingCartList> ShoppingCartList(@Param("userId")int userId,@Param("Page")int Page);
}
